﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace MvcMall.AdminPortal.Controllers.ArticleCategory.ViewModels
{
    /// <summary>
    /// 文章分类
    /// </summary>
    public class ArticleCategoryModel
    {

        /// <summary>
        /// 文章分类ID
        /// </summary>
        public int? ArticleCategoryId { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        [Display(Name = "分类名称")]
        [StringLength(32)]
        [Required]
        public  string CategoryName { get; set; } 

        /// <summary>
        /// 分类下的所有文章
        /// </summary>
        public IList<ArticleCategoryModel> Articles { get; set; }

    }
}
